This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
After struggling with the control for a few hours, I found a workaround.
First problem - the attachment links aren't generated properly for databases that are located in a subfolder of the DATA folder (the subfolder name is missing in the URL).
Workaround - to move database to the root.
Second problem - after resolving first issue, I found that any Word and Excel attachments don't open properly in IE. IE treats those attachments as html and opens in the browser with all data mixed with tags etc. PDF and jpegs were fine.
The same attachments work just fine if referenced the old way.
The FileDownload control has two properties similar to the repeat control:
var and indexVar.
The first one (var) is a request scope attribute under which a row data is made available.
So basically it references the object that is repeated in the FileDownload control (FileRowData).
This FileRowData object has a property we can use - "getName()" which returns the file name.
So the fileNameHrefValue property can now be computed: